const User = ()=>import('@/views/User/index');
const Layout  = ()=>import('@/Layout/index');
const Register = ()=>import('@/views/User/register');
const Login = ()=>import('@/views/User/Login');
const Update = ()=>import('@/views/User/update');
const UserLog = ()=>import('@/views/User/UserLog');

const userrouter = {
  path:'/user',
  name:'User',
  component:Layout,
  redirect:'/user/index',
  meta:{title:'用户首页',icon:'friends'},
  children: [
   {
    path: 'index',
    component: User,
    name: 'index',
    meta: { title: 'index', icon:'comment-o' }
   },
   {
    path: 'register',
    component: Register,
    name: 'register'
   },
   {
    path: 'login',
    component: Login,
    name: 'login'
   },
   {
    path: 'update',
    component: Update,
    name: 'update'
   },
   {
    path: 'userlog',
    component: UserLog,
    name: 'userlog'
   }
  ]
}

export default userrouter